package com.study.component;

import com.coxautodev.graphql.tools.GraphQLMutationResolver;
import com.study.service.UserService;
import javax.annotation.Resource;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @Author tanglingyu
 * @Date: 2021/04/09/ 17:16
 * @Description
 */
@Component
@AllArgsConstructor
public class Mutations implements GraphQLMutationResolver {

  @Resource
  private UserService userService;

  public int insertUser(String name, String location, String testName) {
    return userService.insert(name, location, testName);
  }

}
